import request from '@/axios'
import { deleteLogByIdReq, getLogByDayReq, LogFormData, LogListReq } from '@/api/log/types'

export const saveLogApi = (data: LogFormData) => {
  return request.post({ url: '/log/save', data })
}

export const getLogListApi = (data: LogListReq) => {
  return request.post({ url: '/log/list', data })
}

export const getLogByDay = (data: getLogByDayReq) => {
  return request.post({ url: '/get/log/detail/by/day', data })
}

export const deleteById = (data: deleteLogByIdReq) => {
  return request.post({ url: '/delete/log/by/id', data })
}
